package com.gopay.common.domain.bank.pab.expay.res.msg;

import java.io.Serializable;

import com.gopay.common.domain.bank.pab.expay.SignatureMessage;
import com.gopay.common.domain.bank.pab.expay.res.PabExPayFastpaySOQRes;
import com.gopay.common.domain.bank.pab.expay.res.PabExPayFastpaySOQResFather;
import com.gopay.common.domain.bank.pab.expay.res.PabExPayFastpaySOQResH;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

/**
 * 
 * @ClassName: SignMessageSOQRes 
 * @Description: 平安快捷支付鉴权请求报文（二级节点）
 * @author: ShenJun
 * @date: 2016年10月14日 上午10:39:15
 */

@XStreamAlias("Message")
public class SignMessageSOQRes  implements Serializable{
	/**
	 * 
	 */
    private static final long serialVersionUID = -740486444869353969L;
    /** id属性*/
    @XStreamAsAttribute
    private String id;
    
    /** 三级节点*/
    @XStreamAlias("SOQRes")
    private PabExPayFastpaySOQRes SOQRes;
    
    /** 三级节点*/
    @XStreamAlias("SOQResH")
    private PabExPayFastpaySOQResH SOQResH;

    /** 签字*/
	@XStreamAlias("Signature")
    private SignatureMessage signature;
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }


    public PabExPayFastpaySOQResFather getSOQresFather() {
        if(SOQRes == null){
            return SOQResH;
        }else{
            return SOQRes;
        }
    }

    public void setSOQresFather(PabExPayFastpaySOQResFather sOQresFather) {
        if("SOQRes".equals(sOQresFather.getId())){
            SOQRes = (PabExPayFastpaySOQRes)sOQresFather;
        }else{
            SOQResH = (PabExPayFastpaySOQResH)sOQresFather;
        }
    }

	public SignatureMessage getSignature() {
		return signature;
	}

	public void setSignature(SignatureMessage signature) {
		this.signature = signature;
	}

    
}
